﻿using MenuService.Public;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Menu.Host
{
    class Program
    {
        private static MenuControlFacade _mc;

        private static void ExitHandler()
        {
            Environment.Exit(0);
        }

        private static void SeconHandler()
        {
            Console.WriteLine("Мы внтури второго обработчика....");

            Console.ReadKey();

            _mc.PrintMenu2Console();
        }

        static void Main(string[] args)
        {
            _mc = new MenuControlFacade("MenuCnfg.txt");
            //_mc.BindMethod("5", new Action(ExitHandler));
            //_mc.BindMethod("1.1", SeconHandler);
            _mc.PrintMenu2Console();
            _mc.StartInputListening();
        }
    }
}
